
class Table;

class TableState {
 public:
  TableState (Table& tbl);
  ~TableState();

  fstream data;
  vector< BiContainer<int> > sortedIndexList;
  vector<string> columnNames;

  map<int, fstream*> varColStreams;
  fstream *vcs;

  unsigned int page; /* current page index */

 private:
  void createVarColStreams ();

  Table *table;
};

